package com.xzkj.xiaozhengblog;

import org.apache.tomcat.util.codec.binary.Base64;

public class Datas {
    //加密

    public String setBase64(String str){
        return new String(Base64.decodeBase64(str.getBytes()));
    }
    //解密

    public String getBase64(String str){
        return new String(Base64.encodeBase64(str.getBytes()));
    }
}

